package com.xja.controller;

import com.xja.service.impl.GatewayServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 周广瑞
 * @date 2022/4/27 15:45
 */
@RestController
@RequestMapping("gateway")
public class GatewayController {
    @Autowired
    private GatewayServiceImpl gatewayService;
    @RequestMapping("init")
    public String init(){
        gatewayService.initAllRoute();
        return "success";
    }
}
